<script setup>
  // 引入区域

  import {
    useCounterStore
  } from '../../stores/conter';

  const counter = useCounterStore()
  counter.count++
  //自动补全
  counter.$patch({
    count: counter.count + 1
  })
  //或者使用 action 代替
  counter.imcrement()
</script>

<template>
  <view>
    Current Count: {{counter.count}}
  </view>

  <view class="text">
    测试自定义css 变量
  </view>
</template>

<style lang="scss" scoped>
  .text {
    color: $uni-text-color-grey;
    background-color: $jj-brand-theme-color;
  }
</style>